<template>
	<div id="app">
		<vue-ueditor-wrap v-model="msg" :config="myConfig"></vue-ueditor-wrap>
		<p>
			<el-button type="primary" @click="showOne();">获取编辑器内容</el-button>
		</p>
	</div>
</template>

<script>
	import VueUeditorWrap from "vue-ueditor-wrap"; // ES6 Module
	export default {
		name: "app",
		components: {
			VueUeditorWrap
		},
		data() {
			return {
				msg: '<h2><img src="http://img.baidu.com/hi/jx2/j_0003.gif"/>Vue + UEditor + v-model双向绑定!+!$#</h2>',
				myConfig: {
					UEDITOR_HOME_URL: "/UEditor/",
					serverUrl: ""
				}
			};
		},
		methods: {
			showOne() {
				alert(this.msg);
			}
		}
	};
</script>

<style>
</style>